﻿<Application
    x:Class="OnlineVideos.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:Nav="clr-namespace:System.Windows.Navigation;assembly=Microsoft.Phone"
    xmlns:my="clr-namespace:System;assembly=mscorlib"
    xmlns:AdRotator="clr-namespace:AdRotator;assembly=AdRotator">


    <!--Application Resources-->
    <Application.Resources>
        <local:LocalizedStrings xmlns:local="clr-namespace:DrivingTest" x:Key="LocalizedStrings"/>

            <Nav:UriMapper x:Key="UriMapper">
                <Nav:UriMapper.UriMappings>
                    <Nav:UriMapping Uri="/SearchExtras" MappedUri="/MainPage.xaml"/>
                </Nav:UriMapper.UriMappings>
            </Nav:UriMapper>

            <Style x:Key="AboutTitleStyle" TargetType="TextBlock">
                <Setter Property="Foreground" Value="White"/>
                <Setter Property="FontSize" Value="35"/>
                <Setter Property="FontFamily" Value="/Fonts/AunchantedExpandedBoldOblique.ttf#AunchantedExpandedboldoblique"/>
            </Style>

            <Style x:Key="MainPanoramaTitlestyle" TargetType="TextBlock">
                <Setter Property="Foreground" Value="White"/>
                <Setter Property="FontSize" Value="56"/>
                <Setter Property="FontFamily" Value="/Fonts/AunchantedExpandedBoldOblique.ttf#AunchantedExpandedboldoblique"/>
                <Setter Property="FontWeight" Value="Normal"/>
            </Style>

            <Style x:Key="SongsPivottyle" TargetType="TextBlock">
                <Setter Property="Foreground" Value="White"/>
                <Setter Property="FontSize" Value="30"/>
                <Setter Property="FontFamily" Value="Barrci"/>

            </Style>

            <Style x:Key="MainMenuItemTextStyle" TargetType="TextBlock">
                <Setter Property="Foreground" Value="White"/>
                <Setter Property="FontSize" Value="40"/>
                <Setter Property="FontFamily" Value="/Fonts/BRASSI__.ttf#Brassiere"/>
                <Setter Property="Margin" Value="0,10,0,0"/>
            </Style>

            <Style x:Key="UpgradeMessageStyle" TargetType="TextBlock">
                <Setter Property="Foreground" Value="White"/>
                <Setter Property="FontSize" Value="38"/>
                <Setter Property="FontFamily" Value="Calibri"/>
                <Setter Property="TextWrapping" Value="Wrap"/>
                <Setter Property="Height" Value="240"/>
                <Setter Property="Width" Value="400"/>
            </Style>

            <Style x:Key="AboutUsMenuRowStyle" TargetType="StackPanel">
                <Setter Property="Orientation" Value="Horizontal"/>
                <Setter Property="Margin" Value="0,12,0,12"/>
            </Style>

            <Style x:Key="AboutUsMenuItemText" TargetType="TextBlock">
                <Setter Property="Foreground" Value="White"/>
                <Setter Property="FontSize" Value="40"/>
                <Setter Property="FontFamily" Value="/Fonts/BRASSI__.ttf#Brassiere"/>
                <Setter Property="Margin" Value="0,10,0,25"/>
            </Style>

            <Style x:Key="FormElementLabel" TargetType="TextBlock">
                <Setter Property="Foreground" Value="White"/>
                <Setter Property="FontSize" Value="30"/>
                <Setter Property="FontFamily" Value="Calibri"/>
            </Style>

            <Style x:Key="RelatedAppCountStyle" TargetType="TextBlock">
                <Setter Property="Foreground" Value="White"/>
                <Setter Property="FontSize" Value="32"/>
                <Setter Property="IsHitTestVisible" Value="False"/>
                <Setter Property="Margin" Value="15,20,0,0"/>
            </Style>

            <Style x:Key="RelatedAppCountContainer" TargetType="Ellipse">
                <Setter Property="Canvas.Left" Value="3" />
                <Setter Property="Canvas.Top" Value="12" />
                <Setter Property="Width" Value="60" />
                <Setter Property="Height" Value="60" />
                <Setter Property="Fill" Value="#7e7603" />
                <Setter Property="Stroke" Value="White" />
                <Setter Property="StrokeThickness" Value="3" />
                <Setter Property="IsHitTestVisible" Value="False" />
            </Style>

            <Style x:Key="DetailPagePivotTitle" TargetType="TextBlock">
                <Setter Property="Foreground" Value="White"/>
                <Setter Property="FontSize" Value="25"/>
                <Setter Property="FontFamily" Value="Calibri"/>
                <Setter Property="FontWeight" Value="Normal"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="Margin" Value="15,0,5,0"/>
                <Setter Property="Width" Value="420"></Setter>
                <Setter Property="TextWrapping" Value="Wrap"></Setter>
            </Style>

            <Style x:Key="DetailPagePivotTitleImage" TargetType="Image">
                <Setter Property="Source" Value="/Images/Pivot/Title.png"></Setter>
                <Setter Property="Width" Value="36"></Setter>
                <Setter Property="Height" Value="36"></Setter>
                <Setter Property="Stretch" Value="Uniform"></Setter>
                <Setter Property="HorizontalAlignment" Value="Left"></Setter>
                <Setter Property="Margin" Value="10,0,0,0"/>
            </Style>

            <Style x:Key="logo" TargetType="Image">
                <Setter Property="Source" Value="Images/Panorama/Logo.png"></Setter>
            </Style>

            <Style x:Key="Title" TargetType="Image">
                <Setter Property="Source" Value="Images/Panorama/Title.png"></Setter>
            </Style>

            <ImageBrush x:Name="bipivot" ImageSource="Images/Pivot/Background.jpg"></ImageBrush>

            <Style x:Key="tblkcategory" TargetType="TextBlock">
                <Setter Property="Foreground" Value="White"/>
                <Setter Property="FontSize" Value="36"/>
                <Setter Property="FontFamily" Value="Calibri"/>
                <Setter Property="FontWeight" Value="Normal"/>

            </Style>

            <Style x:Key="AboutContactstyle" TargetType="TextBlock">
                <Setter Property="Foreground" Value="White"/>
                <Setter Property="FontSize" Value="40"/>
                <Setter Property="FontFamily" Value="Calibri"/>
                <Setter Property="Height" Value="75"/>
            </Style>

            <Style x:Key="logoimg" TargetType="Image">
                <Setter Property="Margin" Value="10,0,0,0"></Setter>
            </Style>

            <Style x:Key="QuizReviewOptions" TargetType="TextBlock">
                <Setter Property="FontSize" Value="28"/>
                <Setter Property="Width" Value="410"></Setter>
                <Setter Property="Margin" Value="20,0,10,0"/>
                <Setter Property="TextWrapping" Value="Wrap"></Setter>
                <Setter Property="Foreground" Value="White"></Setter>
            </Style>
            <Style TargetType="phone:PhoneApplicationFrame" x:Key="RootFrameStyle">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="phone:PhoneApplicationFrame">
                            <Border x:Name="ClientArea" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" >
                                <Grid>
                                <Popup x:Name="pop" Height="60" Width="480"  VerticalAlignment="Top" Opened="pop_Opened_1" IsOpen="False" HorizontalAlignment="Center">
                                    <Grid Background="{StaticResource PhoneAccentBrush}" Height="60" Width="480"  VerticalAlignment="Top" HorizontalAlignment="Center">
                                        <TextBlock Text="Successfully Shared To Blog" FontSize="20" Margin="15,25,0,0" ></TextBlock>
                                    </Grid>
                                </Popup>
                                <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}" />
                                    <Grid Height="80" Width="485" VerticalAlignment="Bottom" HorizontalAlignment="Center">
                                        <AdRotator:AdRotatorControl x:Name="AdRotatorWin8"  Margin="-15,0,-15,-4" BorderBrush="Black" BorderThickness="0"
                                        AdHeight="80"
                                        AdWidth="485"
                                        VerticalAlignment="Bottom" 
                                        HorizontalAlignment="Center"
                                        DefaultSettingsFileUri="/DrivingTest;component/DefaultData/defaultAdSettings.xml"
                                        SettingsUrl="http://lartsoft.org/wp7ads/DrivingTestdefaultAdSettings.xml"                
                                        />
                                    </Grid>

                                </Grid>
                            </Border>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <Style x:Key="QuizRadioButtonStyle" TargetType="RadioButton">
            <Setter Property="Foreground" Value="White"/>
                <Setter Property="VerticalAlignment" Value="Top"/>
                <Setter Property="Margin" Value="2,0,0,0"/>
            </Style>
            <Style x:Key="QuizCheckBoxStyle" TargetType="CheckBox">
                <Setter Property="Foreground" Value="White"/>
                <Setter Property="VerticalAlignment" Value="Top"/>
                <Setter Property="Margin" Value="2,0,0,0"/>
            </Style>
        <Style x:Key="Languagetext" TargetType="TextBlock">
            <Setter Property="Text" Value="Subtitle:"></Setter>
        </Style>
        <my:String x:Key="BlogUserName">lartsoft@gmail.com</my:String>
        <my:String x:Key="BlogPassword">soft#306</my:String>
        <my:String x:Key="UserUploadPageName">UserUpload</my:String>
        <my:String x:Key="OnlineImagesPageName">OnlineImages</my:String>
        <my:String x:Key="AudioApp">false</my:String>
            <my:String x:Key="DetailPage">false</my:String>
            <my:String x:Key="dtailsongs">true</my:String>
            <my:String x:Key="CategoryPvt"></my:String>
            <my:String x:Key="castpnm">false</my:String>
            <my:String x:Key="dtailchapter">false</my:String>
            <my:String x:Key="AdVisible">True</my:String>
            <my:String x:Key="songs">false</my:String>
            <my:String x:Key="movies">false</my:String>
            <my:String x:Key="ratingsongs">true,rate this video,rate this show</my:String>
            <my:String x:Key="dtailcast">false</my:String>
            <my:String x:Key="CricketDetails">false</my:String>
            <my:String x:Key="dtailcheat">false</my:String>
            <my:String x:Key="AudioPivotTitle">false</my:String>
            <my:String x:Key="pvtitmSongsTitle">videos</my:String>
            <my:String x:Key="pvtTitleTwo"></my:String>
            <my:String x:Key="pvtFHStitlesTwo">videos</my:String>
            <my:String x:Key="pvtFHStitlesThree">characters</my:String>
            <my:String x:Key="prmh">top shows</my:String>
        <my:String x:Key="productid">b3124c1f-577f-4528-9ed9-96a4b6faa635</my:String>
            <my:String x:Key="misuid">89231</my:String>
            <my:String x:Key="misappid">cce2f581-a98c-4c5f-9a95-c3f705bedb2c</my:String>
            <my:String x:Key="readMore">get more</my:String>
            <my:String x:Key="mln">show list</my:String>
            <my:String x:Key="VideoTitleName">true</my:String>
            <my:String x:Key="Message">true</my:String>
            <my:String x:Key="ContextMenu">Hide Series,Show Series,HIDE SHOWS</my:String>
            <my:String x:Key="ShowUpgradePage">false</my:String>
            <my:String x:Key="UpgradePageMessage">False</my:String>
            <my:String x:Key="SubjectsTitle">practice tests</my:String>
            <my:String x:Key="HistoryPageName">SubjectsHistory</my:String>
            <my:String x:Key="QuizResultTitle">Practice Result</my:String>
            <my:String x:Key="FavoritePageName">Favoritesubjects</my:String>
            <my:String x:Key="ShowParentalControl">false</my:String>
            <my:String x:Key="Quizstartmessage">You are about to take the quiz test.             
     The quiz test contains multiple choice style questions.Complete each question by using radio buttons or check boxes then select Next button for next Question.When you are ready to begin, select the Start button below</my:String>
            <my:String x:Key="Quizdisplay">true</my:String>
            <my:String x:Key="DetailPageName">SubjectDetail</my:String>
            <my:String x:Key="FromMailID">OnlineVideos@lartsoft.com</my:String>
        <my:String x:Key="Primaryshowsfromblog">http://wp7drivingtestshows.blogspot.com/feeds/posts/default?alt=rss</my:String>
            <my:String x:Key="Primarypeoplefromblog"></my:String>
        <my:String x:Key="RegisterDownloadAgent">true</my:String>
            <my:String x:Key="DownloadPeople">false</my:String>
            <my:String x:Key="DownloadShow">true</my:String>
            <ImageBrush x:Name="bi" ImageSource="Images/Panorama/Background.jpg"></ImageBrush>
            <my:Int32 x:Key="PeopleInsertLimit">5</my:Int32>
            <my:Int32 x:Key="ShowsInsertLimit">2</my:Int32>
            <my:String x:Key="AdRotator">True</my:String>
            <my:String x:Key="SettingsUrl">http://lartsoft.org/wp7ads/DrivingTestdefaultAdSettings.xml</my:String>
        <my:String x:Key="type">Show</my:String>
        <my:String x:Key="RatingUserName">drivingtestrating@gmail.com</my:String>
        <my:String x:Key="RatingPassword">lartdrivingtestrating</my:String>
        <my:String x:Key="ShowsRatingBlogUrl">http://drivingtestrating.blogspot.com/feeds/posts/default?alt=rss</my:String>
        <my:String x:Key="LinksRatingBlogUrl">http://drivingtestratinglinks.blogspot.com/feeds/posts/default?alt=rss</my:String>
        <my:String x:Key="QuizRatingBlogUrl">http://drivingtestratingquizlinks.blogspot.com/feeds/posts/default?alt=rss</my:String>
        <my:String x:Key="ShowsRatingBlogName">>drivingtestrating</my:String>
        <my:String x:Key="LinksRatingBlogName">>drivingtestratinglinks</my:String>
        <my:String x:Key="QuizLinksRatingBlogName">>drivingtestratingquizlinks</my:String>
    </Application.Resources>

    

    <Application.ApplicationLifetimeObjects>
        <!--Required object that handles lifetime events for the application-->
        <shell:PhoneApplicationService
            Launching="Application_Launching" Closing="Application_Closing"
            Activated="Application_Activated" Deactivated="Application_Deactivated"/>
    </Application.ApplicationLifetimeObjects>

</Application>